package com.example.chainsave.upload.dao;

import com.example.chainsave.upload.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User selectById(int id);

    // username?
    User selectByName(String name);

    User selectByEmail(String email);

    int insertUser(User user);

    int updateType(int id, int type);

    int updatePassword(int id, String password);

    int updateEmail(int id, String email);

    List<User> selectAll();

    int deleteUserById(int id);
}
